package com.koocloud.electroplatemanage.controller;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.service.WorkOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020-11-24 15:44
 */
@RestController
@RequestMapping("/workOrder")
public class WorkOrderController {

    @Autowired
    WorkOrderService workOrderService;

    /**
     *
     * @param workOrderNumber
     * @return
     */
    @RequestMapping(value = "/selectByOrderNo", method = RequestMethod.POST, name = "工单查询")
    public ResponseTemplate selectByOrderNo(@RequestParam("workOrderNumber") String workOrderNumber){
       return workOrderService.selectByOrderNo(workOrderNumber);
    }
}
